package mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import pojo.User;

import java.util.List;

public interface UserMapper {
    List<User> selectAll();
    User selectOne(int iD);
    void insertOne(User user);
    @Delete("DELETE FROM t_user WHERE id = #{id}")
    void deleteOne(int id);
    @Update("update t_user set username =#{username}, fullname = #{fullname},"+
            "password = #{password},address =#{address}"+
            "WHERE id = #{id}")
    void updateOne(User user);


}

